<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>CSC560 Design and Analysis of Real-Time Systems</title>
<meta name="keywords" content="CSC560" />
<meta name="description" content="CSC560" />
<link href="../default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
	<div id="header">
		<h1>CSC560</h1>
		<h2>Design and Analysis of Real-Time Systems</h2>
		<ul>
			<li class="first"> <a href="../index.html" accesskey="1" title="">Home</a> </li>
			<li> <a href="../project1/index.html" accesskey="2" title="">Project 1</a>	</li>
			<li> <a href="../project2/index.html" accesskey="3" title="">Project 2</a> </li>
			<li> <a href="../project3/index.html" accesskey="4" title="">Project 3</a> </li>
			<li> <a href="index.html" accesskey="4" title=""><b>Project 4</b></a> </li>
			<li> <a href="../project5/index.html" accesskey="4" title="">Project 5</a> </li>
		</ul>
	</div>
</div>
<div id="content">
	<div id="colOne">
		<h2>Hardware Description</h2>
		<p>
			In this section, we present the hardware components and how we intend to use them
			to create the rules of game. Next, we discuss assumptions that we intend to use
			during the game.
		</p><br>
	<p>
		We intend to use the following hardware components:
		<ul>
				<li> <i><b>2 Roombas</i></b><br>
				One will represent the cat and the other will represent the mouse.
				</li>
				<li> <i><b>2 Beacons</i></b> <br>
				One will be mounted on the cat, and one will be mounted on the mouse. The beacons are the sensor
				needed for the cat to detect the mouse, and for the mouse to escape from the cat. The cat 
				will have sensors in all 4 directions, whereas the mouse will have only one sensor located in the front 
				of the roomba.
				</li>
				<li> <i><b>2 AT90USB 1287 Microcontrollers</b></i> <br>
				One will be mounted on the cat, and one will be mounted on the mouse. The microcontroller acts
		as the brain of the cat and the mouse. Algorithms will be implemented for the cat to search for the mouse, 
		and well as algorithms to allow communication between the cat and mouse. Both microcontrollers will
		communicate with the beacon and the radio.
		</li>
				<li> <i><b>2 nRF24L01 Radio Chips</b></i> <br>
				One will be mounted on the cat, and one will be mounted on the mouse. The radio chip will 
		serve as main communication between the mouse and the cat.
		</li>
		</ul>
	</p>
	
	
	<h2>Game Rules</h2>
	<h3>Cat </h3>
		<p>
			From a hardware perspective, there are two roombas. They communicate through radio by
			sending packets to each other. The sensors attached to both roombas acts 
			as detectors. When one of the cat's sensor is aligned with the mouse sensor, 
			the cat has detected the mouse. It will then intelligently execute movement commands to chase the mouse. 
			To catch the mouse, the cat has to hit the mouse front bumper with its front bumper. 
			Only at that time, the cat wins the game. The following pictures shows scenarios of detecting the mouse and
			catching the mouse, respectively.
		</p>
		<p>
			<center><a href="images/game_rules_detected.jpg"><img src="images/game_rules_detected.jpg"></a></center>
		</p>

		<p>
			<center><a href="images/game_rules_catched.jpg"><img src="images/game_rules_catched.jpg"></a></center>
		</p>

		
		<h3>Mouse </h3>
		<p>
			The goal of the mouse is to escape from the cat for a certain time. 
			First, there is a timer that 
			keep tracks of the time the mouse is escaping from the cat. The timer starts 
			when the mouse starts moving. The timer is important because it indicates if 
			the mouse has won the game. For instance, when time is up and the mouse has
			not collided with the cat, the mouse wins the game. We have decided to limit the game 
			to 5 minutes, so that after 5 minutes, if the mouse has successfully escaped from
			the cat, it will win the game. Note that the timer is not a fixed value, 
			it can be changed as needed.
			<br><br>
		</p>
		<h2>Assumptions</h2>
		<p>
			Some assumptions have to be stated for the game to operate properly:
			<ul>
				<li> 1. The cat must start the game before the mouse. It will wait for the mouse to send a begin message.
					At that time, the cat can start searching for the mouse.
				</li>
				<li>
					2. The mouse uses only one direction on the beacon, the one located in front of the roomba.
				</li>
				<li>
					3. The cat catches the mouse only when its front bumper has collided
					with the front bumper of the mouse,and that the mouse and the cat sensor are both aligned and
					activated.
				</li>

				<li>
					4. We assume that the escape mode of the mouse is to operate in vaccuming mode.
				</li>
		</li>
		</ul>
		</p>
	</div>
	<div id="colTwo">
		<h3>Project Sections</h3>
		<ul>
			<li class="first"><a href="01_game_rule.html">Game Rules</a></li>
			<li><a href="02_hardware_description.html">Hardware Description</a></li>
			<li><a href="03_design_process.html">Design Process</a></li>
			<li>-	<a href="03_a_block_diagram.html">Block Diagram</a></li>
			<li>-	<a href="03_b_msc.html">Message Sequence Charts</a></li>
			<li>-	<a href="03_c_fsm.html">Finite State Machines</a></li>
			<li>-	<a href="03_d_timing_diagram.html">Timing Diagrams</a></li>
			<li><a href="04_extra_features.html">Potential Extra Features</a></li>
		</ul>
	</div>
</div>
<div id="footer">
	<p>
		@ 2009. All Rights Reserved. Design by 
		<a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
	</p>
</div>
</body>
</html>
